import Vue from "vue";
import VueRouter from "vue-router";

// import HomeView from '../views/HomeView.vue'
// import CheckLists from '../views/CheckLists.vue'
import FormsAll from "../views/FormsAll.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "forms",
    component: FormsAll,
  },
  {
    path: "/signany/:pdfUrl", // 定义动态路由参数
    name: "signany",
    component: () => import("../views/Signany.vue"),
  },
  {
    path: "/kong",
    name: "kong",
    component: () => import("../views/Kong.vue"),
  },
  // {
  //   path: '/checklists',
  //   name: 'checklists',
  //   component: CheckLists
  // },
  // {
  //   // path: '/signany',
  //   // path: '/signany/:id', // 定义动态路由参数
  //   path: '/pdf/:pdfUrl', // 定义动态路由参数
  //   name: 'signany',
  //   component: () => import('../views/Signany.vue')
  // },
];

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  // base:'h5',
  routes,
});

export default router;
